package service

import (
	"context"
	"yuanxin-admin/internal/model"
	"yuanxin-admin/internal/vo"

	"github.com/gin-gonic/gin"
)

type ISysMenuService interface {
	SelectMenuList(context context.Context) ([]*vo.MenuVO, error)
	RoleMenu(context context.Context) ([]*vo.PageMenuVO, error)
	RoleMenuByRoles(context context.Context, roles []string) ([]*vo.PageMenuVO, error)
	SafeDeleteById(context context.Context, id int64) (bool, error)
	UpdateRoleMenus(c *gin.Context, roleId string, ids []int64) (bool, error)
	Create(c *gin.Context, entity *model.SysMenu) (bool, error)
	Update(c *gin.Context, entity *model.SysMenu) (bool, error)
}
